-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/get user email api #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤪🤪🤪🤪🤪
*/ | ||
const getEmailController = async (req: Request, res: Response) => { | ||
try { | ||
const resData: number = await authService.getEmailService(req.body.email); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 resData도 형식 지정 .. 저도 일케 해보겠슴다 .. 🤨🤨🤨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호,, 꼼꼼보이
return constant.EMAIL_ALREADY_EXIST; | ||
} | ||
|
||
return constant.SUCCESS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 맞다 이거 .. 근데 요 상수값은 controller에서는 안쓰는데 클린코드를 위해 사용하는건가여? 🤨🤨🤨
src/controller/auth.ts
Outdated
* @route GET /auth/email | ||
* @access public | ||
* @err 1. 필요한 값이 없을 때 | ||
* 2. 이메일 형식이 올바르지 않을 때 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러? 🧐 에러? 🧐 에러? 🧐 에러? 🧐
src/controller/auth.ts
Outdated
* @access public | ||
* @err 1. 필요한 값이 없을 때 | ||
* 2. 이메일 형식이 올바르지 않을 때 | ||
* 3. 이메일이 이미 존재할 때 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러? 🧐 에러? 🧐 에러? 🧐 에러? 🧐
src/controller/auth.ts
Outdated
returnCode.OK, | ||
"올바른 형식이 아닙니다.", | ||
true, | ||
{ isUnique: false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
src/controller/auth.ts
Outdated
returnCode.OK, | ||
"이미 사용 중인 이메일입니다.", | ||
true, | ||
{ isUnique: false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
src/controller/auth.ts
Outdated
returnCode.OK, | ||
"사용할 수 있는 이메일입니다.", | ||
true, | ||
{ isUnique: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
유니크?? 유니클🧐로 인가요? 🧐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
으이구 ~ 🧐
*/ | ||
const getEmailController = async (req: Request, res: Response) => { | ||
try { | ||
const resData: number = await authService.getEmailService(req.body.email); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호,, 꼼꼼보이
src/controller/auth.ts
Outdated
returnCode.OK, | ||
"올바른 형식이 아닙니다.", | ||
true, | ||
{ isUnique: false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isUnique 맞나요?😏🤐🤐🤐
✅ PR check list
🌈 PR 요약
📌 변경 사항
Linked Issue
close #48